/*
 * Copyright (c) 2010-2021 Contributors to the Eclipse Foundation
 * 
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 * 
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 * 
 * SPDX-License-Identifier: EPL-2.0
 */

/* Select
 * 
 * Styling Select mainly includes:
 * 
 * 1. Containers
 * 		.dijitSelect - for border, background-color
 * 		.dijitButtonContents - for border
 *
 * 2. Arrow
 * 		.dijitArrowButton - for border, padding and background-color|image
 * 		.dijitArrowButtonInner - for border, background-color|image, display and width|height
 * 
 * 3. Menu
 * 		.dijitSelectMenu .* - for border, padding
 * 
 * 4. Various states
 * 		.dijitSelectHover|.dijitSelectFocused|.dijitSelectDisabled .* - for border, padding and background-color|image 
 */

/* normal status */
.oneui .dijitSelect {
  border: 1px solid #aaaaaa;
}

.dj_webkit .oneui .dijitSelect{
  display: inline-block;
}

.dj_webkit .oneui table.dijitSelect{
  display: inline-table;
}

.oneui .dijitSelect .dijitButtonContents {
  border: 0 solid #aaaaaa;
  border-right-width: 1px;
  background: white;
}

.oneui .dijitSelect .dijitButtonContents,
.oneui .dijitSelect .dijitArrowButton {
  -webkit-transition-property: background-color, border;
  -moz-transition-property: background-color, border;
  transition-property: background-color, border;
  -webkit-transition-duration: 0.35s;
  -moz-transition-duration: 0.35s;
  transition-duration: 0.35s;
}

.oneui .dijitSelect .dijitButtonText {
  padding: 0;
  text-align: left;
} 
.dj_ie6 .oneui .dijitSelect, .dj_ie6 .oneui .dijitSelect .dijitButtonNode {
  background-image: none;
}
.oneui .dijitSelect .dijitButtonContents {
  padding: 0 10px 0 10px;
}
.oneui .dijitSelect .dijitArrowButton {
  padding: 0;
  border: 0;
  border-color: #aaaaaa;
}
.oneui .dijitSelect .dijitArrowButton .dijitArrowButtonInner {
  width: 7px;
  padding: 4px 6px 5px 6px !important; /* have to use !important to overwrite the style in dijit.css */
  background-image: url("images/comboButtonArrows.png");
  background-repeat: no-repeat;
  background-position: -149px 53%;
}

.dj_ie6 .oneui .dijitSelect .dijitArrowButton .dijitArrowButtonInner{ 
  background-image: url("images/comboButtonArrows8bit.png");
} 

.oneui .dijitSelect .dijitDownArrowButton{
  background-image: none;
  background: #f4f4f4; /* Old browsers */
  background: -moz-linear-gradient(top,  #f4f4f4 0%, #dbdbdb 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4f4f4), color-stop(100%,#dbdbdb)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #f4f4f4 0%,#dbdbdb 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #f4f4f4 0%,#dbdbdb 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #f4f4f4 0%,#dbdbdb 100%); /* IE10+ */
  background: linear-gradient(top,  #f4f4f4 0%,#dbdbdb 100%); /* W3C */
}

/* ArrowButtonHover*/
.oneui .dijitSelect .dijitDownArrowButtonHover .dijitArrowButtonInner,
.oneui .dijitSelect .dijitDownArrowButtonActive .dijitArrowButtonInner,
.oneui .dijitHasDropDownOpen .dijitSelect .dijitArrowButtonInner{
  background-position: -49px 53%;
}

.oneui .dijitSelect .dijitDownArrowButtonHover{
  background: #e5e5e5; /* Old browsers */
  background: -moz-linear-gradient(top,  #fefefe 0%, #cccccc 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefefe), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #fefefe 0%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #fefefe 0%,#cccccc 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #fefefe 0%,#cccccc 100%); /* IE10+ */
  background: linear-gradient(top,  #fefefe 0%,#cccccc 100%); /* W3C */
}

/* ArrowButtonActive */
.oneui .dijitSelect .dijitDownArrowButtonActive,
.oneui .dijitHasDropDownOpen .dijitSelect .dijitDownArrowButton{
	border-color: #aaaaaa;
	background-image: none;
	background: #cccccc; /* Old browsers */
	background: -moz-linear-gradient(top,  #dbdbdb 0%, #f4f4f4 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dbdbdb), color-stop(100%,#f4f4f4)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #dbdbdb 0%,#f4f4f4 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #dbdbdb 0%,#f4f4f4 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #dbdbdb 0%,#f4f4f4 100%); /* IE10+ */
	background: linear-gradient(top,  #dbdbdb 0%,#f4f4f4 100%); /* W3C */
}

/* hover status*/
.oneui .dijitSelectHover{
  border: 1px solid #bbbbbb;
}

.oneui .dijitSelectHover .dijitButtonContents {
  border-color: #bbbbbb;
}

/* disable status */
.oneui .dijitSelectDisabled {
  border: 1px solid #cccccc;
  background-color: #f3f3f3;
  background-image: none;
  color: #666666;
}
.oneui .dijitSelectDisabled .dijitDownArrowButton,
.oneui .dijitSelectDisabled .dijitButtonContents{
  background: #f3f3f3;
}

.oneui .dijitSelectDisabled .dijitButtonContents {
  border-color: #cccccc;
}

/* readonly status */
.oneui .dijitSelectReadOnly {
  border: 1px solid #bbbbbb;
}

.oneui .dijitSelectReadOnly .dijitButtonContents {
  color: #767676;
  border: 0 solid #bbbbbb;
  border-right-width: 1px;
}


.oneui .dijitSelectReadOnly .dijitArrowButtonInner,
.oneui .dijitSelectReadOnly .dijitDownArrowButtonActive .dijitArrowButtonInner,
.oneui .dijitSelectReadOnly .dijitDownArrowButtonHover .dijitArrowButtonInner{
	background-position: -149px 53%;
}

.oneui .dijitSelectReadOnly .dijitDownArrowButton{
  background: #f3f3f3;
}


/* Dropdown menu style for select */

.oneui .dijitMenuPopup .dijitSelectMenu{
  margin-left: 0;
  background-image: none;
  padding: 1px 1px 0 1px;
  border: 1px solid #aaaaaa;
  -webkit-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.15);
}


.oneui .dijitMenuPopup .dijitSelectMenu .dijitMenuItemHover {
  color: #000000;
  background: #cce8f2;
}
.oneui .dijitMenuPopup .dijitSelectMenu .dijitMenuItemSelected {
  color: #000000;
  background: #cce8f2;
}

.oneui .dijitSelectMenu td.dijitMenuItemIconCell, .oneui .dijitSelectMenu td.dijitMenuArrowCell {
  /* so that arrow and icon cells from MenuItem are not displayed */

  display: none;
}


.oneui .dijitSelectMenu td.dijitMenuItemLabel {
	/* line up menu text with text in select box (in LTR and RTL modes) */
	margin: 1px 0 1px 0;
  	padding: 3px 10px 4px 10px;
}
.oneui .dijitSelectMenu .dijitMenuTable tr.dijitMenuItem.dijitMenuItemFocused:first-child>td.dijitMenuItemLabel {
  	padding-top: 3px;
  	padding-bottom: 4px;
}
.oneui .dijitSelectMenu .dijitMenuTable tr.dijitMenuItem.dijitMenuItemFocused>td.dijitMenuItemLabel {
  	padding-top: 2px;
  	padding-bottom: 4px;
}

.oneui .dijitSelectMenu .dijitMenuSeparatorTop {
  border-bottom: 1px solid #769dc0;
}

/* Overwrite dijit.css*/
.oneui .dijitSelect {
	border-collapse: separate;
}
